import requests
import unittest
from ddt import ddt, file_data


@ddt
class A3mall(unittest.TestCase):
    def setUp(self) -> None:
        print('start case')

    def tearDown(self) -> None:
        print('end case')

    # 登录
    @file_data(r'D:\gao5biji\wenjian\newgw\unit_05\daya.json')
    def test_A3mall_01(self, username, password):
        login = requests.post(url='http://10.59.9.14:7003/api/public/login',
                              json={"username": username, "password": password})
        print(login.json())


if __name__ == '__main__':
    unittest.main()
